@import "../utils/color";

#main {
  position: relative;
  width: 100%;
  height: 100%;
}

#wrapper {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
}

#immediate-order {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 176px;
  height: 57px;
  background-image: image-url("shared/immediate_order.png");
  background-repeat: no-repeat;
  background-size: 176px 57px;
}

.count-down {
  position: absolute;
  //left: 16px;

  &-text {
    font-size: 24px;
    padding: 0 16px;
    text-align: left;
    background-color: rgba($black, 0.5);

    &-order {
      color: #ff0000;
      padding: 8px;
    }
  }
}

.song-info {
  position: absolute;
  top: 32px;
  //left: 16px;
  width: 288px;
  height: 84px;
  background-color: rgba($black, 0.5);

  &-first {
    .marquee-truncate {
      font-size: 40px;
      padding: 0 16px;
      text-align: left;
      white-space: nowrap;
      text-overflow: ellipsis;
      color: $primary;
    }
  }

  &_second {
    .marquee-truncate {
      font-size: 24px;
      padding: 0 16px;
      text-align: left;
      white-space: nowrap;
      text-overflow: ellipsis;
      color: white;
    }
  }
}

.control {
  position: absolute;
  top: 10%;
  left: 50%;
  display: none;
  overflow: hidden;
  width: 672px;
  transform: translateX(-50%);

  &_item {
    position: relative;
    float: left;
    width: 96px;
    height: 96px;
    border: 2px solid transparent;
    background-color: rgba($black, 0.5);

    &.fe-cache,
    .fe-focus {
      border-color: $primary;

      .control_item_text {
        color: $primary;
      }

      .icon-go-end {
        background-image: image-url("icons/green_go-end.png");
      }

      .icon-double-left {
        background-image: image-url("icons/green_double-left.png");
      }

      .icon-double-right {
        background-image: image-url("icons/green_double-right.png");
      }

      .icon-heart {
        background-image: image-url("icons/white_stroke_heart.png");
      }

      .icon-heart-green {
        background-image: image-url("icons/green_heart.png");
      }

      .icon-list-bottom {
        background-image: image-url("icons/green_list-bottom.png");
      }

      .icon-performance {
        background-image: image-url("icons/green_performance.png");
      }
    }

    &:first-child {
      //border-top-left-radius: 5px;
      //border-bottom-left-radius: 5px;
    }

    &:last-child {
      //border-top-right-radius: 5px;
      //border-bottom-right-radius: 5px;
    }

    &_icon {
      position: absolute;
      top: 8px;
      left: 50%;
      width: 48px;
      height: 48px;
      transform: translateX(-50%);
      text-align: center;
      background-size: 48px 48px;
    }

    &_text {
      font-size: 24px;
      position: absolute;
      top: 56px;
      left: 50%;
      width: 100%;
      transform: translateX(-50%);
      text-align: center;

      &.grey {
        color: $grey;
      }
    }

    .icon-voice-off {
      background-image: image-url("icons/grey_voice-off.png");
    }

    .icon-go-end {
      background-image: image-url("icons/white_go-end.png");
    }

    .icon-double-left {
      background-image: image-url("icons/white_double-left.png");
    }

    .icon-double-right {
      background-image: image-url("icons/white_double-right.png");
    }

    .icon-heart {
      background-image: image-url("icons/white_heart.png");
    }

    .icon-heart-green {
      background-image: image-url("icons/green_heart.png");
    }

    .icon-list-bottom {
      background-image: image-url("icons/white_list-bottom.png");
    }

    .icon-performance {
      background-image: image-url("icons/white_performance.png");
    }
  }

  .icons {
    //position: absolute;
    //top: 50%;
    //left: 50%;
    width: 208px;
    height: 96px;
    margin-top: 288px;
    margin-left: 232px;
    transform: translate(-50% -50%);

    &_reset {
      float: left;
      width: 96px;
      height: 96px;
      background-image: image-url("icons/white_redo.png");
      background-size: 96px 96px;

      &.fe-focus {
        background-image: image-url("icons/green_redo.png");
      }
    }

    &_play {
      float: left;
      width: 96px;
      height: 96px;
      margin-left: 16px;
      background-image: image-url("icons/white_play.png");
      background-size: 96px 96px;

      &.fe-focus {
        background-image: image-url("icons/green_play.png");
      }
    }

    &_pause {
      float: left;
      width: 96px;
      height: 96px;
      margin-left: 16px;
      background-image: image-url("icons/white_pause.png");
      background-size: 96px 96px;

      &.fe-focus {
        background-image: image-url("icons/green_pause.png");
      }
    }
  }
}

#volume {
  font-size: 48px;
  font-weight: bold;
  position: absolute;
  top: 608px;
  left: 1056px;
  color: $primary;
}

#speed {
  font-size: 48px;
  font-weight: bold;
  position: absolute;
  top: 608px;
  left: 64px;
  color: $primary;
}

.list {
  position: absolute;
  top: 25%;
  left: 65%;
  display: none;
  overflow: hidden;
  width: 400px;
  height: 480px;
  padding: 16px;
  background-color: rgba($black, 0.5);

  &_item {
    height: 40px;

    &_text {
      line-height: 32px;
      display: inline-block;
      width: 288px;
      border: 2px solid transparent;

      .marquee-truncate {
        font-size: 24px;
        overflow: hidden;
        text-align: left;
        white-space: nowrap;
        text-overflow: ellipsis;
      }

      &.fe-focus {
        color: $primary;
        border-color: $primary;
      }
    }

    &_up {
      display: inline-block;
      width: 28px;
      height: 28px;
      background-image: image-url("icons/white_up.png");
      background-size: 28px 28px;

      &.fe-focus {
        background-image: image-url("icons/green_up.png");
      }
    }

    &_delete {
      display: inline-block;
      width: 28px;
      height: 28px;
      margin-left: 8px;
      background-image: image-url("icons/white_delete.png");
      background-size: 28px 28px;

      &.fe-focus {
        background-image: image-url("icons/green_delete.png");
      }
    }
  }

  //&_button {
  //  &_left {
  //    position: absolute;
  //    bottom: 16px;
  //    left: 16px;
  //    width: 48px;
  //    height: 48px;
  //    background-image: image-url("icons/white_left-c.png");
  //  }
  //
  //  &_right {
  //    position: absolute;
  //    right: 16px;
  //    bottom: 16px;
  //    width: 48px;
  //    height: 48px;
  //    background-image: image-url("icons/white_right-c.png");
  //  }
  //}
}

.progress {
  position: absolute;
  top: 672px;
  width: 100%;
  height: 32px;
  padding: 0 128px;
  background-color: rgba($black, 0.5);

  &_bar {
    float: left;
    width: 832px;
    height: 8px;
    margin-top: 11px;
    border-radius: 9999px;
    background-color: rgba($white, 0.5);

    &_left {
      position: absolute;
      height: 8px;
      border-radius: 9999px;
      background-color: $primary;
    }
  }

  &_time {
    font-size: 24px;
    font-weight: bold;
    float: left;
    margin-left: 32px;
  }
}

#one_frame {
  position: absolute;
  width: 1280px;
  height: 720px;
}
